import request from '@/utils/request'
const prefix = '/md_sys_dict'

export function getDictList(data) {
  return request({
    url: `${prefix}/getDictList`, method: 'post', data
  })
}

export function createDict(data) {
  return request({
    url: `${prefix}/createDict`, method: 'post', data
  })
}

export function updateDict(data) {
  return request({
    url: `${prefix}/updateDict`, method: 'post', data
  })
}

export function deleteDict(id) {
  return request({
    url: `${prefix}/deleteDict/${id}`, method: 'delete'
  })
}

export function deleteMulityDict(ids) {
  const data = { ids }
  return request({
    url: `${prefix}/deleteMulityDict`, method: 'post', data
  })
}